package com.sky.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * PROJECT_NAME: sky-take-out
 * NAME: AddressBookDTO
 *
 * @AUTHOR: zhang
 * DATE: 2023/12/1
 * DESCRIPTION :
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AddressBookDTO {
    private Long id;
    //用户id
    private Long userId;
    //收货人
    @NotEmpty(message = "收货人不能为空")
    private String consignee;
    //手机号
    @NotEmpty(message = "手机号不能为空")
    private String phone;
    //性别 0:女 1:男
    private String sex;
    //省级区划编号
    private String provinceCode;
    //省级名称
    private String provinceName;
    //市级区划编号
    private String cityCode;
    //市级名称
    private String cityName;
    //区级区划编号
    private String districtCode;
    //区级名称
    private String districtName;
    //详细地址
    @NotEmpty(message = "详细地址不能为空")
    private String detail;
    //标签
    private String label;
    //是否默认 0:否 1:是
    private Integer isDefault;
}
